package org.farm2.base.domain;

import lombok.Data;
import org.farm2.tools.db.commons.FarmUUID;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
public class FarmUserContext implements Serializable {
    private String loginname;
    private String password;
    private String name;
    private String loginid;
    private String state;
    private String type;
    private String ip;
    private List<String> actions = new ArrayList<>();
    private List<String> tags = new ArrayList<>();

    private int frameMenuNum;

    public String initLoginid() {
        loginid = FarmUUID.getUUID32();
        return loginid;
    }
}
